package org.mindrive.system.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.mindrive.system.collection.system.LogEntity;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author houwei
 * @since 2021-10-15
 */
public interface LogMapper extends BaseMapper<LogEntity> {
    void createTable(@Param("tableName") String tableName);
    void updateTableName(@Param("tableName") String tableName);

    List<Map> selectLogHistory(@Param("tableName") String tableName, @Param("name") String name, @Param("userId") String userId,
                                  @Param("beginTimeDate") Date beginTimeDate, @Param("endTimeDate") Date endTimeDate,
                                  @Param("eventType") String eventType,@Param("curPage") String curPage,@Param("pageSize") String pageSize);
    Integer selectLogHistoryCount(@Param("tableName") String tableName, @Param("name") String name, @Param("userId") String userId,
                                     @Param("beginTimeDate") Date beginTimeDate, @Param("endTimeDate") Date endTimeDate,
                                     @Param("eventType") String eventType,@Param("curPage") String curPage,@Param("pageSize") String pageSize);
}
